package com.tech.zhidengxian.model.dto.result;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
/**
*@author Ljh
*@param
*@date 2022/7/20
*@description 统一结果集
*@return
**/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ReturnResult<T> implements Serializable {

    //状态码
    private ResponseCode code;
    //提示信息
    private String message;

    //是否成功
    private Boolean success;
    //返回数据
    private T data;

}

